package org.example.lambda;

import java.util.function.Consumer;

/**
 * lambda语法
 */
public class Test01 {




    public interface Lambda01Interface {

        void print();
    }

    public static class Lambda01 {


        /**
         * ()-> 无返回值
         */
        public void print(){
            System.out.println("....");
        }
    }


    public static void main(String[] args) {
        //接收一个参数，无返回值的lambda写法
        Consumer<String> consumer = (a) -> System.out.println(a);
        consumer.accept("我觉得还行！");
    }
}
